n=0
for i in range(1,5):
    for j in range(1,5):
        for k in range(1,5):
            if not(k==i) and not(j==k) and not(i==j):
             n=n+1
            print(str(k) + str(i) + str(j))
